import random
import uuid
from django.test import TestCase


code = random.choices('0123456789',k=6)

print(code)